Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions / Working With Time Base Values


SetTimeBaseValue

The SetTimeBaseValue function allows your application to set the current time of a time base. You must specify the new time as a time value.

pascal void SetTimeBaseValue (TimeBase tb, TimeValue t,
                               TimeScale s);
tb
Specifies the time base for this operation. Your application obtains this time base identifier from the NewTimeBase function (described on page 2-297).
t
Specifies the new time value.
s
Specifies the time scale of the new time value.
DESCRIPTION
If you set the current time of a time base that is the master time base for other time bases, the current times in all the dependent time bases are changed appropriately. If you change the current time in a time base that relies on a master time base, the Movie Toolbox changes the offset between the time base and the master time base--the master time base is not affected.

ERROR CODES
None

SEE ALSO
You can set the current time of a time base from a time structure by calling the SetTimeBaseTime function, which is described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996